<!DOCTYPE html>
<html lang="en">

	<head>
		<!-- BEGIN META -->
		<?php $this->load->view('Public/headmeta.html');?>
		<!-- END META -->

		<!-- BEGIN STYLESHEET-->
		<?php $this->load->view('Public/headcss.html');?>
		<!-- END STYLESHEET-->
		<title>
			<?php echo $current['title']."-".$setting['title'];?>
		</title>

	</head>

	<body>
		<!-- BEGIN SECTION -->
		<section id="container">
			<!-- BEGIN HEADER -->
			<?php $this->load->view('Public/header.html');?>
			<!-- END HEADER -->
			<!-- BEGIN SIDEBAR -->
			<?php $this->load->view('Public/sidebar.html');?>
			<!-- END SIDEBAR -->
			<!-- BEGIN MAIN CONTENT -->
			<section id="main-content">
				<!-- BEGIN WRAPPER  -->
				<section class="wrapper">
					<!-- TOPMENU ROW  -->
					<?php $this->load->view('Public/topmenu.html');?>
					<!-- TOPMENU ROW  -->

					<!-- BEGIN ROW  -->
					<div class="row">
						<div class="col-lg-12">
							<section class="panel">
								<header class="panel-heading">
									<span class="label label-primary"><?php echo $current['title'];?></span>
									<span class="tools pull-right"> </span>
								</header>
								<div class="panel-body">
									<table class="table table-striped table-advance table-hover">
										<thead>
											<tr>
												<th class="text-center"><i class="fa fa-pencil-square"></i> 表描述 </th>
												<th class="text-center"><i class="fa fa-sitemap"></i> 表名 </th>
												<th class="text-center"><i class="fa fa-adjust"></i> 数据量 </th>
												<th class="text-center"><i class="fa fa-star-half-o"></i> 数据大小 </th>
												<th class="text-center"><i class="fa fa-clock-o"></i> 创建时间 </th>
												<th class="text-center"><i class="fa fa-clock-o"></i> 更新时间 </th>
											</tr>
										</thead>
										<tbody>
											<?php foreach($tablelist as $item):?>
											<tr>
												<td class="text-center">
													<?php echo $item['comment'];?>
												</td>
												<td class="text-center">
													<?php echo $item['name'];?>
												</td>
												<td class="text-center">
													<?php echo $item['rows'];?>
												</td>
												<td class="text-center">
													<?php echo $item['data_length'];?>B
												</td>
												<td class="text-center">
													<?php echo $item['create_time'];?>
												</td>
												<td class="text-center">
													<?php echo $item['update_time'];?>
												</td>
											</tr>
											<?php endforeach;?>
										</tbody>
									</table>
									<div class="form-group">
										<a class="btn btn-primary" href="<?php echo site_url('Pkadmin/Database/optimize');?>">优化表</a>
										<a class="btn btn-info" href="<?php echo site_url('Pkadmin/Database/repair');?>">修复表</a>
										<a class="btn btn-success" href="<?php echo site_url('Pkadmin/Database/backup');?>">立即备份</a>
									</div>
								</div>
							</section>
						</div>
					</div>
					<!-- END ROW  -->
				</section>
				<!-- END WRAPPER  -->
			</section>
			<!-- END MAIN CONTENT -->
			<!-- BEGIN FOOTER -->
			<?php $this->load->view('Public/footer.html');?>
			<!-- END FOOTER -->
		</section>
		<!-- END SECTION -->
		<!-- BEGIN JS -->
		<?php $this->load->view('Public/footjs.html');?>
		<!-- END JS -->
	</body>

</html>